package cn.hinglo.website.bean;

import com.jfinal.plugin.activerecord.IBean;
import com.jfinal.plugin.activerecord.Model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;


/**
 * @createTime: 2018-11-12 15:06:41
 * @author: HingLo
 * @description: BaseBanner 模型
 */
@Entity
@Table(name = "banner")
public abstract class BaseBanner<M extends BaseBanner<M>> extends Model<M> implements IBean {

    @Column(name = "id")
    public java.lang.Integer getId() {
        return getInt("id");
    }

    public M setId(java.lang.Integer id) {
        set("id", id);
        return (M) this;
    }

    @Column(name = "title")
    public java.lang.String getTitle() {
        return getStr("title");
    }

    public M setTitle(java.lang.String title) {
        set("title", title);
        return (M) this;
    }

    @Column(name = "image")
    public java.lang.String getImage() {
        return getStr("image");
    }

    public M setImage(java.lang.String image) {
        set("image", image);
        return (M) this;
    }

    @Column(name = "status")
    public java.lang.Integer getStatus() {
        return getInt("status");
    }

    public M setStatus(java.lang.Integer status) {
        set("status", status);
        return (M) this;
    }

    @Column(name = "date")
    public java.util.Date getDate() {
        return get("date");
    }

    public M setDate(java.util.Date date) {
        set("date", date);
        return (M) this;
    }

}
